<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="layout::header"></head>

<body>

<nav th:replace="layout::navbar"></nav>
    <div class="container">
        <h1>用户页面</h1>
        <div>
        <form action="/view/save" th:object="${view}" method="POST">
<!--            <input type="text" placeholder="电影名称" th:field="${view.name}">-->
            <select th:field="*{films}" multiple="multiple" class="select1">
                <option th:each="film : ${allFilms}" th:value="${film.filmId}" th:text="${film.name}"></option>
            </select>
            <select th:field="${view.stage}">
                <option th:value="未观看">未观看</option>
                <option th:value="已观看">已观看</option>
                <option th:value="想观看">想观看</option>
            </select>
            <select th:field="${view.comment}">
                <optgroup label="想观看的分数">
                    <option th:value="1分">1分</option>
                    <option th:value="2分">2分</option>
                    <option th:value="3分">3分</option>
                </optgroup>
                <optgroup label="观看后的分数">
                    <option th:value="1分">1分</option>
                    <option th:value="2分">2分</option>
                    <option th:value="3分">3分</option>
                    <option th:value="4分">4分</option>
                    <option th:value="5分">5分</option>
                </optgroup>
            </select>
            <input type="text" placeholder="观看的日期" th:field="${view.data}">
            <button type="submit">新建记录</button>
        </form>
        </div>
    </div>
</body>
</html>